package com.api.demo.dto.business.company;

import com.api.demo.dto.business.ApiDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @description: 平安入金记录查询DTO
 * @author: yanming
 * @createDate: 2022/12/27 18:05
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "查询平安线上账户入金记录DTO")
public class PaPayGoldenInfoDTO extends ApiDTO {

    private static final long serialVersionUID = 4935914556096892047L;

    @ApiModelProperty(value = "社会信用代码", required = true)
    @NotBlank(message = "社会信用代码不能为空")
    private String creditCode;

    @ApiModelProperty(value = "服务商id", required = true)
    @NotNull(message = "服务商id不能为空")
    private Long taxId;

    @ApiModelProperty(value = "页码")
    @NotNull(message = "页码不能为空")
    @Min(value = 1, message = "页码不能小于1")
    private Integer pageNo;

    @ApiModelProperty(value = "页面大小")
    @NotNull(message = "页面大小不能为空")
    @Min(value = 1, message = "页面大小不能小于1")
    @Max(value = 1000, message = "页面大小不能大于1000")
    private Integer pageSize;

    @ApiModelProperty(value = "开始时间")
    @NotBlank(message = "开始时间不能为空")
    private String startDate;

    @ApiModelProperty(value = "结束时间")
    @NotBlank(message = "结束时间不能为空")
    private String endDate;
}